<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function usum(o,p){
            let usum=0
            for(let i=o;i<=p;i++){
                usum=i+usum
            }
            document.write(usum)
        }
        usum(+prompt("输入数字一"),+prompt("输入数字二"))
    </script>
</body>
</html>